package com.uqbar.pacman.imageComponents;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.Raster;

import javax.imageio.ImageIO;

import org.w3c.dom.css.RGBColor;

import com.uqbar.pacman.scenes.PacmanScene;
import com.uqbar.vainilla.GameComponent;
import com.uqbar.vainilla.appearances.Sprite;
import com.uqbar.vainilla.exceptions.GameException;

public class ComponentRender extends GameComponent<PacmanScene> {


	private Sprite image;

	
	public Sprite getImage() {
		return image;
	}

	public void setImage(Sprite image) {
		this.image = image;
	}
	
	public ComponentRender(String imagePath, double x, double y){
		this.image = Sprite.fromImage(imagePath);
		this.setAppearance(this.image);
		this.setX(x);
		this.setY(y);
		
		

	}
	
	
	
}
